package com.hup.restTimer.config;

import com.hup.restTimer.model.AppConfig;
import com.hup.utils.commons.start.AppIcon;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hugan
 * @date 2022/1/13
 */
@Configuration
public class BeanConfiguration {

    @Bean
    public AppConfig appConfig() {
        return new AppConfig().loadFromFile();
    }

    @Bean
    public AppIcon appIcon() {
        return new AppIcon("/img/app_tray.png");
    }

}
